package com.app.model;

/**
 * Created with IntelliJ IDEA.
 * User: cnprinces
 * Date: 13-1-29
 * Time: 下午1:40
 * To change this template use File | Settings | File Templates.
 */

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 商品和套系的对应表信息表
 */
@Entity
@Table(name = "Goods_InfoToPackage")
public class Goods_InfoToPackage {

    @Id
    @GenericGenerator(name = "Goods_InfoGenerator", strategy = "native") //这个是hibernate的注解
    @GeneratedValue(generator = "Goods_InfoGenerator") //使用uuid的生成策略
    private Integer id;
    private Integer GoodsinfoId;
    private Integer GoodsPackageId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGoodsinfoId() {
        return GoodsinfoId;
    }

    public void setGoodsinfoId(Integer goodsinfoId) {
        GoodsinfoId = goodsinfoId;
    }

    public Integer getGoodsPackageId() {
        return GoodsPackageId;
    }

    public void setGoodsPackageId(Integer goodsPackageId) {
        GoodsPackageId = goodsPackageId;
    }
}
